package com.manager.mapper;

import com.manager.entity.User;
import com.manager.vo.UserVo;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author zhou
 * @date 2021/07/10 18:52
 **/
@Mapper
public interface UserMapper {
  /**
   * 添加用户
   *
   * @param user
   * @return
   */
  int addUser(User user);

  UserVo selectUserById(Long id);

  User selectUserByUserName(String account);

  User selectUserByEmail(String account);

}
